dns: add support for reverse address mapping queries
authorRahul Thakur <[email protected]>
Tue, 20 Feb 2024 07:30:17 +0000 (13:00 +0530)
committerFelix Fietkau <[email protected]>
Wed, 28 May 2025 22:40:37 +0000 (00:40 +0200)
commit2b28094d31caa75cd60ef86f0a27a793beaff968
tree459979e499c8003413c1012cf4f85d1052218ceb
parentcecbe1c0caaee3de70bea0413b9f90d4b5b5ca36
dns: add support for reverse address mapping queries

The mdnsd currently does not have the capability of responding to
reverse address mapping dns requests for either IPv4 or IPv6.

This commit adds support to handle reverse address mapping and
respond with hostname if the address matches that of the DUT.

Signed-off-by: Rahul Thakur <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]> [cleanup]
dns.c